package model;

/**
 * Represents a patient entry. Currently this class takes in String values and prints out in toString, however
 * this could be developed further by taking in a Cell array, thus keeping the values in their original state.
 * @author Audun
 *
 */

public class Patient {
	
	private String patID;
	private String countryCode;
	private String sEADate;
	private String unexpectedSEA;
	private String uADE;
	private String sEADiagnosis;
	private String eventNumber;
	private String reportType;
	private String fUReport;
	private String siteNotifiedDate;
	private String relationDevice;
	private String relationDrug;
	private String outcome;
	private String resolvedDate;
	
	private String newline = System.getProperty("line.separator");
	
	/**
	 * Constructor
	 * @param patientInfo String array of one pasient entry / One database row
	 */
	public Patient(String[] patientInfo) {
		patID = patientInfo[0];
		countryCode = patientInfo[1];
		sEADate = patientInfo[2];
		unexpectedSEA = patientInfo[3];
		uADE = patientInfo[4];
		sEADiagnosis = patientInfo[5];
		eventNumber = patientInfo[6];
		reportType = patientInfo[7];
		fUReport = patientInfo[8];
		siteNotifiedDate = patientInfo[9];
		relationDevice = patientInfo[10];
		relationDrug = patientInfo[11]; 
		outcome = patientInfo[12];
		resolvedDate = patientInfo[13];
	}
	
	
	
	public String getPatID() {
		return patID;
	}



	public void setPatID(String patID) {
		this.patID = patID;
	}



	public String getCountryCode() {
		return countryCode;
	}



	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}



	public String getsEADate() {
		return sEADate;
	}



	public void setsEADate(String sEADate) {
		this.sEADate = sEADate;
	}



	public String getUnexpectedSEA() {
		return unexpectedSEA;
	}



	public void setUnexpectedSEA(String unexpectedSEA) {
		this.unexpectedSEA = unexpectedSEA;
	}



	public String getuADE() {
		return uADE;
	}



	public void setuADE(String uADE) {
		this.uADE = uADE;
	}



	public String getsEADiagnosis() {
		return sEADiagnosis;
	}



	public void setsEADiagnosis(String sEADiagnosis) {
		this.sEADiagnosis = sEADiagnosis;
	}



	public String getEventNumber() {
		return eventNumber;
	}



	public void setEventNumber(String eventNumber) {
		this.eventNumber = eventNumber;
	}



	public String getReportType() {
		return reportType;
	}



	public void setReportType(String reportType) {
		this.reportType = reportType;
	}



	public String getfUReport() {
		return fUReport;
	}



	public void setfUReport(String fUReport) {
		this.fUReport = fUReport;
	}



	public String getSiteNotifiedDate() {
		return siteNotifiedDate;
	}



	public void setSiteNotifiedDate(String siteNotifiedDate) {
		this.siteNotifiedDate = siteNotifiedDate;
	}



	public String getRelationDevice() {
		return relationDevice;
	}



	public void setRelationDevice(String relationDevice) {
		this.relationDevice = relationDevice;
	}



	public String getRelationDrug() {
		return relationDrug;
	}



	public void setRelationDrug(String relationDrug) {
		this.relationDrug = relationDrug;
	}



	public String getOutcome() {
		return outcome;
	}



	public void setOutcome(String outcome) {
		this.outcome = outcome;
	}



	public String getResolvedDate() {
		return resolvedDate;
	}



	public void setResolvedDate(String resolvedDate) {
		this.resolvedDate = resolvedDate;
	}



	public String getNewline() {
		return newline;
	}



	public void setNewline(String newline) {
		this.newline = newline;
	}



	@Override
	public String toString() {
		String toString = 
			"Patient ID: " + patID + newline + 
			"Country code: " + countryCode + newline + 
			"SEA Date: " + sEADate + newline + 
			"Unexpected SEA: " + unexpectedSEA + newline + 
			"UADE: " + uADE + newline + 
			"SEA Diagnosis: " + sEADiagnosis + newline + 
			"Event Number: " +	eventNumber + newline + 
			"Report Type: " + reportType + newline + 
			"FU Report: " + fUReport + newline + 
			"Site Notified Date: " + siteNotifiedDate + newline + 
			"Relation Device: " + relationDevice + newline + 
			"Relation drug: " + relationDrug + newline + 
			"Outcome: " + outcome + newline + 
			"Resolved date: " + resolvedDate;
		return toString;
	}

}
